﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200106B RID: 4203
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournRoomList : IMessage<RogueTournRoomList>, IMessage, IEquatable<RogueTournRoomList>, IDeepCloneable<RogueTournRoomList>, IBufferMessage
	{
		// Token: 0x17003504 RID: 13572
		// (get) Token: 0x0600BBBA RID: 48058 RVA: 0x001F9BAB File Offset: 0x001F7DAB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournRoomList> Parser
		{
			get
			{
				return RogueTournRoomList._parser;
			}
		}

		// Token: 0x17003505 RID: 13573
		// (get) Token: 0x0600BBBB RID: 48059 RVA: 0x001F9BB2 File Offset: 0x001F7DB2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournRoomListReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003506 RID: 13574
		// (get) Token: 0x0600BBBC RID: 48060 RVA: 0x001F9BC4 File Offset: 0x001F7DC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournRoomList.Descriptor;
			}
		}

		// Token: 0x0600BBBD RID: 48061 RVA: 0x001F9BCB File Offset: 0x001F7DCB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournRoomList()
		{
		}

		// Token: 0x0600BBBE RID: 48062 RVA: 0x001F9BD4 File Offset: 0x001F7DD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournRoomList(RogueTournRoomList other) : this()
		{
			this.roomId_ = other.roomId_;
			this.bPFBJKCFLKH_ = other.bPFBJKCFLKH_;
			this.roomIndex_ = other.roomIndex_;
			this.status_ = other.status_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BBBF RID: 48063 RVA: 0x001F9C28 File Offset: 0x001F7E28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournRoomList Clone()
		{
			return new RogueTournRoomList(this);
		}

		// Token: 0x17003507 RID: 13575
		// (get) Token: 0x0600BBC0 RID: 48064 RVA: 0x001F9C30 File Offset: 0x001F7E30
		// (set) Token: 0x0600BBC1 RID: 48065 RVA: 0x001F9C38 File Offset: 0x001F7E38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RoomId
		{
			get
			{
				return this.roomId_;
			}
			set
			{
				this.roomId_ = value;
			}
		}

		// Token: 0x17003508 RID: 13576
		// (get) Token: 0x0600BBC2 RID: 48066 RVA: 0x001F9C41 File Offset: 0x001F7E41
		// (set) Token: 0x0600BBC3 RID: 48067 RVA: 0x001F9C49 File Offset: 0x001F7E49
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BPFBJKCFLKH
		{
			get
			{
				return this.bPFBJKCFLKH_;
			}
			set
			{
				this.bPFBJKCFLKH_ = value;
			}
		}

		// Token: 0x17003509 RID: 13577
		// (get) Token: 0x0600BBC4 RID: 48068 RVA: 0x001F9C52 File Offset: 0x001F7E52
		// (set) Token: 0x0600BBC5 RID: 48069 RVA: 0x001F9C5A File Offset: 0x001F7E5A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RoomIndex
		{
			get
			{
				return this.roomIndex_;
			}
			set
			{
				this.roomIndex_ = value;
			}
		}

		// Token: 0x1700350A RID: 13578
		// (get) Token: 0x0600BBC6 RID: 48070 RVA: 0x001F9C63 File Offset: 0x001F7E63
		// (set) Token: 0x0600BBC7 RID: 48071 RVA: 0x001F9C6B File Offset: 0x001F7E6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournRoomStatus Status
		{
			get
			{
				return this.status_;
			}
			set
			{
				this.status_ = value;
			}
		}

		// Token: 0x0600BBC8 RID: 48072 RVA: 0x001F9C74 File Offset: 0x001F7E74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournRoomList);
		}

		// Token: 0x0600BBC9 RID: 48073 RVA: 0x001F9C84 File Offset: 0x001F7E84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournRoomList other)
		{
			return other != null && (other == this || (this.RoomId == other.RoomId && this.BPFBJKCFLKH == other.BPFBJKCFLKH && this.RoomIndex == other.RoomIndex && this.Status == other.Status && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BBCA RID: 48074 RVA: 0x001F9CF0 File Offset: 0x001F7EF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RoomId != 0U)
			{
				num ^= this.RoomId.GetHashCode();
			}
			if (this.BPFBJKCFLKH != 0U)
			{
				num ^= this.BPFBJKCFLKH.GetHashCode();
			}
			if (this.RoomIndex != 0U)
			{
				num ^= this.RoomIndex.GetHashCode();
			}
			if (this.Status != RogueTournRoomStatus.None)
			{
				num ^= this.Status.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BBCB RID: 48075 RVA: 0x001F9D80 File Offset: 0x001F7F80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BBCC RID: 48076 RVA: 0x001F9D88 File Offset: 0x001F7F88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BBCD RID: 48077 RVA: 0x001F9D94 File Offset: 0x001F7F94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Status != RogueTournRoomStatus.None)
			{
				output.WriteRawTag(8);
				output.WriteEnum((int)this.Status);
			}
			if (this.RoomIndex != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.RoomIndex);
			}
			if (this.BPFBJKCFLKH != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.BPFBJKCFLKH);
			}
			if (this.RoomId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.RoomId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BBCE RID: 48078 RVA: 0x001F9E24 File Offset: 0x001F8024
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RoomId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RoomId);
			}
			if (this.BPFBJKCFLKH != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BPFBJKCFLKH);
			}
			if (this.RoomIndex != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RoomIndex);
			}
			if (this.Status != RogueTournRoomStatus.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Status);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BBCF RID: 48079 RVA: 0x001F9EAC File Offset: 0x001F80AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournRoomList other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RoomId != 0U)
			{
				this.RoomId = other.RoomId;
			}
			if (other.BPFBJKCFLKH != 0U)
			{
				this.BPFBJKCFLKH = other.BPFBJKCFLKH;
			}
			if (other.RoomIndex != 0U)
			{
				this.RoomIndex = other.RoomIndex;
			}
			if (other.Status != RogueTournRoomStatus.None)
			{
				this.Status = other.Status;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BBD0 RID: 48080 RVA: 0x001F9F24 File Offset: 0x001F8124
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BBD1 RID: 48081 RVA: 0x001F9F30 File Offset: 0x001F8130
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 16U)
				{
					if (num == 8U)
					{
						this.Status = (RogueTournRoomStatus)input.ReadEnum();
						continue;
					}
					if (num == 16U)
					{
						this.RoomIndex = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 32U)
					{
						this.BPFBJKCFLKH = input.ReadUInt32();
						continue;
					}
					if (num == 72U)
					{
						this.RoomId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004B8C RID: 19340
		private static readonly MessageParser<RogueTournRoomList> _parser = new MessageParser<RogueTournRoomList>(() => new RogueTournRoomList());

		// Token: 0x04004B8D RID: 19341
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004B8E RID: 19342
		public const int RoomIdFieldNumber = 9;

		// Token: 0x04004B8F RID: 19343
		private uint roomId_;

		// Token: 0x04004B90 RID: 19344
		public const int BPFBJKCFLKHFieldNumber = 4;

		// Token: 0x04004B91 RID: 19345
		private uint bPFBJKCFLKH_;

		// Token: 0x04004B92 RID: 19346
		public const int RoomIndexFieldNumber = 2;

		// Token: 0x04004B93 RID: 19347
		private uint roomIndex_;

		// Token: 0x04004B94 RID: 19348
		public const int StatusFieldNumber = 1;

		// Token: 0x04004B95 RID: 19349
		private RogueTournRoomStatus status_;
	}
}
